{yun:}include file="$trainstyle/header.htm"{/yun}
<script src="{yun:}$config.sy_weburl{/yun}/js/public.js?v={yun:}$config.cachecode{/yun}"></script>
<script>
function check(myform){
	if ($("input[name=file]").val()==""){
		layer.msg('图片不能为空！！', 2, 8);return false; 
	}	
}
</script> 
<div class="clear"></div>
<div class="training_content training_w980">

  {yun:}include file="$trainstyle/left.htm"{/yun}
  <div class="right_column frt mt20">
    <div class="right_column_border">
      <div class="right_column_h1"><span class="right_column_h1_span flt">机构横幅</span></div>
      <div class="admin_note mt10">
		<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
        <form action="{yun:}$now_url{/yun}" method="post" name="myform" target="supportiframe" id='myform' onsubmit="return check();" enctype="multipart/form-data">
        <ul>
          <li style="line-height:34px;">
            <button type="button" class="layui-btn layui-btn-normal" id="noupload">选择图片</button>
			 <input type="hidden" id="laynoupload" value="1"/>
            {yun:}if is_array($banner){/yun}
            <input name="update" class="btn_01" type="submit" style="float:left;margin-left:10px;" value="设置" name="submit">
            {yun:}else{/yun}
            <input name="submit" class="btn_01" type="submit" style="float:left;margin-left:10px;" value="上传" name="submit">
            {yun:}/if{/yun}
            最佳尺寸：980*160 </li>
        </ul>
        </form>
      </div>
      <div class="admin_textbox_04">
        <div class="banner_h1"> <span>图片展示</span> </div>
          {yun:}if is_array($banner){/yun} 
            <img src="{yun:}$banner.pic{/yun}" width="708" height="200" /> 
          {yun:}else{/yun}
            <div class="con_banner_no"><span></span> <em>您还没有上传横幅图片</em></div>
          {yun:}/if{/yun} 
      </div>
    </div>
  </div>
</div>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui.upload.js?v={yun:}$config.cachecode{/yun}" type='text/javascript'></script>
{yun:}include file="$trainstyle/footer.htm"{/yun}